package com.xls.rong.http;

import com.xls.rong.entity.BaseEntity;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2017/3/30.
 */

public interface HttpInterface {


    /**
     * 获取token
     * @return
     */
    @POST("user/getToken.json")
    @FormUrlEncoded
    Observable<BaseEntity> login(@Field("userId") String userId,@Field("userName") String userName);

}
